<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <title>websocket测试</title>
  <script src="./js/jquery-3.6.1.min.js"></script>
  <script src="./js/ws.js"></script>
</head>

<body>
  <button type="button" id="btn">按钮</button>
  <input type="text" name="" id="demo" value="" />
  <div id="res">接收到的服务器端消息显示区域</div>
</body>

</html>